import { createStore } from 'vuex'

const store = createStore({
	state() {
		return {
			isAuthenticated: false // 用户是否登录
		}
	},
	mutations: {
		login(state) {
			state.isAuthenticated = true
		},
		logout(state) {
			state.isAuthenticated = false
		}
	}
})

export default store